﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CPSite.Master" AutoEventWireup="true" CodeBehind="CoursesList.aspx.cs" Inherits="WebTemplate.ControlPanel.Account.CoursesList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <fieldset>
        <legend>Course List</legend>
        <div class="form">
        <asp:GridView ID="CourseList" runat="server" PagerStyle-CssClass="Pagger" AllowPaging="true" AllowSorting="true" PageSize="10" DataKeyNames="ID" GridLines="None" AutoGenerateColumns="false" OnPageIndexChanging="CourseList_PageIndexChanging" OnSorting="CourseList_Sorting" OnRowCommand="CourseList_RowCommand">
            <Columns>
               <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                <asp:BoundField DataField="PreReq" HeaderText="PreReq" SortExpression="PreReq" />
                <asp:BoundField DataField="department" HeaderText="Department" SortExpression="Department" />
                <asp:ButtonField CommandName="DeleteCourse" ButtonType="Link" Text="Delete" />
                 <asp:HyperLinkField Text="Edit" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="~/Account/CourseDetails.aspx?id={0}" />
            </Columns>
        </asp:GridView>
        <asp:Button ID="Add" runat="server" Text="Add Course" CssClass="formbutton" OnClick="Add_Click"/>
            </div>
    </fieldset>
</asp:Content>
